<template>
  <w-language>
    <div :style="$bgImage(bgImg)" class="layout-oauth w-image-fit">
      <nuxt />
      <a-back-top />
    </div>
    <w-loading />
  </w-language>
</template>

<script lang="ts">
import Vue from 'vue'
import WLanguage from '@/components/global/language'
import WLoading from '@/components/global/loading'
import { removeLoading } from '~/utils'

export default Vue.extend({
  name: 'OAuth',
  components: {
    WLanguage,
    WLoading
  },
  data () {
    return {
      bgImg: process.env.HOME_BG_IMG
    }
  },
  mounted () {
    removeLoading()
  }
})
</script>

<style scoped lang="less">
.layout-oauth {
  height: 100vh;
}
</style>
